package tpo.lmhconsumer.lmhconsumer.service.impl;

import com.github.pagehelper.PageInfo;
import dto.AddWares;
import dto.Dto;
import dto.ShowWares;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Album;
import pojo.Sort;
import pojo.Wares;
import tpo.lmhconsumer.lmhconsumer.feign.WaresClient;
import tpo.lmhconsumer.lmhconsumer.service.WaresService;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class WaresServiceImpl implements WaresService {
    @Autowired
    WaresClient waresClient;

    @Override
    public Dto getWares_Page(Map map) {
        return waresClient.getWares_page(map);
    }

    @Override
    public Dto<List<ShowWares>> getWares(Map map) {
        return waresClient.getWares(map);
    }

    @Override
    public Dto<List<Wares>> getWares2(Map map) {
        return waresClient.getWares2(map);
    }

    @Override
    public Dto<List<Album>> getAlbum(Map map) {
        return waresClient.getAlbum(map);
    }

    @Override
    public Dto delAlbum(Map map) {
        return waresClient.delAlbum(map);
    }

    @Override
    public Dto addAlbum(List<Album> list) {
        return waresClient.addAlbum(list);
    }


    @Override
    public Dto addWares(Wares wares, List list) {
        AddWares addWares=new AddWares();
        addWares.setWares(wares);
        addWares.setList(list);
        return waresClient.addWares(addWares);
    }


    @Override
    public Dto updateWares(Wares wares) {
        return waresClient.updateWares(wares);
    }

    @Override
    public Dto getSort(Map map) {
        return waresClient.getSort(map);
    }

    @Override
    public Dto addSort(Sort sort) {
        return waresClient.addSort(sort);
    }

    @Override
    public Dto updateSort(Sort sort) {
        return waresClient.updateSort(sort);
    }

    @Override
    public Dto delSort(Map map) {
        return waresClient.delSort(map);
    }

    @Override
    public Dto getWaresList(Map map) {
        return waresClient.getWaresList(map);
    }

    @Override
    public Dto getWaresList2(Map map) {
        return waresClient.getWaresList2(map);
    }
    @Override
    public Dto getWaresList3(Map map) {
        return waresClient.getWaresList3(map);
    }
    @Override
    public Dto delWares(Map map) {
        return waresClient.delWares(map);
    }
}
